//
//  HomePageCardViewCell.m
//  ChinaA
//
//  Created by Mxionlly on 2018/10/30.
//  Copyright © 2018 Evan. All rights reserved.
//

#import "HomePageCardViewCell.h"

@implementation HomePageCardViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
    self.viewBg.layer.cornerRadius = 10;
    self.viewBg.layer.shadowColor = [UIColor grayColor].CGColor;
    //        阴影的透明度
    self.viewBg.layer.shadowOpacity = 0.4f;
    self.viewBg.layer.shadowOffset = CGSizeMake(0, 0);
    //        阴影的圆角
    self.viewBg.layer.shadowRadius = 4.0f;
}

+ (instancetype)cellWithTableView:(UITableView *)tableView
{
    static NSString *Service = @"HomePageCardViewCell";
    HomePageCardViewCell *cell = [tableView dequeueReusableCellWithIdentifier:Service];
    if (cell == nil) {
        cell =   [[[NSBundle mainBundle] loadNibNamed:@"HomePageCardViewCell" owner:nil options:nil] objectAtIndex:0];
        cell.selectionStyle = UITableViewCellSelectionStyleNone;
    }
    return cell;
}



- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
